﻿using System;
using System.Data;
using WP.Commons;

namespace WP.IM.DataEntity
{
    [System.ComponentModel.DesignerCategory("Code")]
    public class ImSemiProductDEL : DataSet, IDataEntity
    {
          //=========mCity ============================
        public const string TABLENAME_ImSemiProduct = "ImSemiProduct";
        public const string RECID = "RecId";
        public const string SemiCode = "SemiCode";
        public const string SemiName = "SemiName";
        public const string Unit = "Unit";
        public const string RECSTAMP = "RecStamp";
      

        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

        public ImSemiProductDEL()
        {
            //Create mCity structure
            CreatemCityStructure();

        }

        //=========mCity============================
        private void CreatemCityStructure()
        {
            DataTable table;
            DataColumnCollection DCC;
            DataColumn DC = new DataColumn();
            table = new DataTable(TABLENAME_ImSemiProduct);
            DCC = table.Columns;

            DC = new DataColumn(RECID, typeof(System.Int32));
            DCC.Add(DC);

            DC = new DataColumn(SemiCode, typeof(System.String));
            DCC.Add(DC);

            DC = new DataColumn(SemiName  , typeof(System.String ));
            DC.DefaultValue ="";
            DCC.Add(DC);

            DC = new DataColumn(Unit  , typeof(System.String ));
            DC.DefaultValue = "";
            DCC.Add(DC);

          
            DC = new DataColumn(RECSTAMP, typeof(System.Byte[]));
            DCC.Add(DC);

           
            
            this.Tables.Add(table);
        }
    }
}
